<%--
  Created by IntelliJ IDEA.
  User: 10195
  Date: 2024/6/30
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
    <head>
        <title>修改品牌</title>
    </head>
    <body>
        <h3>修改品牌</h3>
        <!--action的属性值为浏览器提交到服务器的资源路径-->
        <form action="/AxiosJsonDemoo/updateServlet" method="post">
            <%--通过隐藏域提交id，作用：隐藏id的提交--%>
            <input type="hidden" name="id" value="${brand.id}">
            品牌名称：<input name="brandName" value="${brand.brandName}"><br>
            企业名称：<input name="companyName" value="${brand.companyName}"><br>
            排序：<input name="ordered" value="${brand.ordered}"><br>
            描述信息：<textarea rows="5" cols="20" name="description">${brand.description}</textarea><br>
            状态：
            <c:choose>
                <c:when test="${brand.status == 0}">
                    <input type="radio" name="status" value="0" checked>禁用
                    <input type="radio" name="status" value="1">启用<br>
                </c:when>
                <c:otherwise>
                    <input type="radio" name="status" value="0">禁用
                    <input type="radio" name="status" value="1" checked>启用<br>
                </c:otherwise>
            </c:choose>
            <input type="submit" value="提交">
        </form>
    </body>
</html>